package com.example.java_chatroom.file;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.*;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/images/**")
                .addResourceLocations("file:C:\\Users\\DELL\\Desktop\\zyt毕业设计\\网页聊天室\\src\\main\\resources\\uploads\\");
    }
}
